<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>极果网</title>
    <script src=".//jquery-3.6.0(1).js"></script>
    <link rel="stylesheet" href=".//酷玩.css">
</head>

<body>
    <div class="Top">
        <!-- 标题 -->
        <img src=".//img/jiguo.png" alt="" class="jiguo">
        <div class="Top-1">
            <ul class="BT">
                <li class="on"><a href=".首页.html">首页</a></li>
                <li class=""><a href="./试用.html">试用</a></li>
                <li class=""><a href="./酷玩.html">酷玩</a></li>
                <li class=""><a href="./导购.html">导购</a></li>
                <li class=""><a href="./报告.html">报告</a></li>
            </ul>
        </div>
        <!-- 右边的图标 -->
        <div class="head-2">
            <a href="">
                <img src="../极果网.html/./img1/head-2图标.png" alt="">
                <span>分销伙伴招募中！</span>
            </a>
        </div>
    </div>
    <hr>
    <p class="kuwan">发现酷玩</p>
    <div class="zuixin">
        <div class="title active" content1="new-content">最新</div>
        <div class="title" content1="hot-content">最热</div>
        <div class="title" content1="faxian3">品类</div>
    </div>
    <div id="img">
        <div class="new-content">
            <!-- 最新 -->
            <div id="img-1">
                <div><img src=".//img/k1.jpg" alt="" id="img-2">
                    <p class="img-p">SCiO 微型光谱仪</p>
                    <p class="img-p1">可以测定食物成分及营养</p>
                    <p class="img-p2">￥ 1212</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""><img src=".//img/xinxi.png"
                            alt=""></span>

                </div>
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k3.jpg" alt="" id="img-2">
                    <p class="img-p">Mozbii触控吸色笔</p>
                    <p class="img-p1">能吸取65000件颜色</p>
                    <p class="img-p2">￥ 暂无</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div><img src=".//img/k1.jpg" alt="" id="img-2">
                    <p class="img-p">SCiO 微型光谱仪</p>
                    <p class="img-p1">可以测定食物成分及营养</p>
                    <p class="img-p2">￥ 1212</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k3.jpg" alt="" id="img-2">
                    <p class="img-p">Mozbii触控吸色笔</p>
                    <p class="img-p1">能吸取65000件颜色</p>
                    <p class="img-p2">￥ 暂无</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div><img src=".//img/k1.jpg" alt="" id="img-2">
                    <p class="img-p">SCiO 微型光谱仪</p>
                    <p class="img-p1">可以测定食物成分及营养</p>
                    <p class="img-p2">￥ 1212</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k3.jpg" alt="" id="img-2">
                    <p class="img-p">Mozbii触控吸色笔</p>
                    <p class="img-p1">能吸取65000件颜色</p>
                    <p class="img-p2">￥ 暂无</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div><img src=".//img/k1.jpg" alt="" id="img-2">
                    <p class="img-p">SCiO 微型光谱仪</p>
                    <p class="img-p1">可以测定食物成分及营养</p>
                    <p class="img-p2">￥ 1212</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> 3<img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k3.jpg" alt="" id="img-2">
                    <p class="img-p">Mozbii触控吸色笔</p>
                    <p class="img-p1">能吸取65000件颜色</p>
                    <p class="img-p2">￥ 暂无</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
            </div>
            <div class="jiazai"><img src=".//img/more.png" alt="">点击加载更多</div>
        </div>
        <div class="hot-content">
            <!-- 最热 -->
            <div id="img-1">
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div><img src=".//img/k1.jpg" alt="" id="img-2">
                    <p class="img-p">SCiO 微型光谱仪</p>
                    <p class="img-p1">可以测定食物成分及营养</p>
                    <p class="img-p2">￥ 1212</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>

                </div>
                <div> <img src=".//img/k3.jpg" alt="" id="img-2">
                    <p class="img-p">Mozbii触控吸色笔</p>
                    <p class="img-p1">能吸取65000件颜色</p>
                    <p class="img-p2">￥ 暂无</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div><img src=".//img/k1.jpg" alt="" id="img-2">
                    <p class="img-p">SCiO 微型光谱仪</p>
                    <p class="img-p1">可以测定食物成分及营养</p>
                    <p class="img-p2">￥ 1212</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k3.jpg" alt="" id="img-2">
                    <p class="img-p">Mozbii触控吸色笔</p>
                    <p class="img-p1">能吸取65000件颜色</p>
                    <p class="img-p2">￥ 暂无</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k3.jpg" alt="" id="img-2">
                    <p class="img-p">Mozbii触控吸色笔</p>
                    <p class="img-p1">能吸取65000件颜色</p>
                    <p class="img-p2">￥ 暂无</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k2.jpg" alt="" id="img-2">
                    <p class="img-p">B&O BeoSound 35 音响</p>
                    <p class="img-p1">支持所有音乐流媒体服务</p>
                    <p class="img-p2">￥ 512</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div> <img src=".//img/k4.jpg" alt="" id="img-2">
                    <p class="img-p">XPLORE 2 航拍飞行器</p>
                    <p class="img-p1">搭载自动避障系统</p>
                    <p class="img-p2">￥ 433</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>
                </div>
                <div><img src=".//img/k1.jpg" alt="" id="img-2">
                    <p class="img-p">SCiO 微型光谱仪</p>
                    <p class="img-p1">可以测定食物成分及营养</p>
                    <p class="img-p2">￥ 1212</p>
                    <span class="span-img"><img src=".//img/xinRedo.png" alt=""> <img src=".//img/xinxi.png"
                            alt=""></span>

                </div>
            </div>
            <div class="jiazai"><img src=".//img/more.png" alt="">点击加载更多</div>
        </div>
        <!-- 品类数据 -->
        <div class="faxian3">
            <!-- 数据 -->
            <div class="fa-data fabb">
                <div class="sheng1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">生活</p>
                    </div>
                    <!-- 第一个 -->
                    <div class="img-d">
                        <img src="./img/cat_1.png" alt="">
                        <p>空气净化器(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_2.png" alt="">
                        <p>吸尘器(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_3.png" alt="">
                        <p>扫地机器人(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_4.png" alt="">
                        <p>电风扇(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_5.png" alt="">
                        <p>净水壶(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_6.png" alt="">
                        <p>电饭煲(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_7.png" alt="">
                        <p>咖啡机(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_8.png" alt="">
                        <p>原汁机(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_9.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                </div>
                <div class="sheng3">

                </div>
                <!-- --------------------------------------------- -->
                <!-- 个人护理 -->
                <div class="sheng1 ppp1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">个人护理</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_9.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_10.png" alt="">
                        <p>剃须刀(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_11.png" alt="">
                        <p>按摩器(21)</p>
                    </div>
                </div>
                <div class="sheng3 hulue">

                </div>
                <!-- ====================================== -->
                <!-- 健康 -->
                <div class="sheng1 ppp1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">健康</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_1.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_2.png" alt="">
                        <p>剃须刀(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_3.png" alt="">
                        <p>按摩器(21)</p>
                    </div>
                </div>
                <div class="sheng3 hulue2">

                </div>
                <!-- 智能穿戴 -->
                <div class="sheng1 ppp1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">智能穿戴</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_10.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_5.png" alt="">
                        <p>剃须刀(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_7.png" alt="">
                        <p>按摩器(21)</p>
                    </div>
                </div>
                <div class="sheng3 zhi">

                </div>
                <!-- 出行 -->
                <div class="sheng1 ppp1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">出行</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_11.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_6.png" alt="">
                        <p>剃须刀(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_8.png" alt="">
                        <p>按摩器(21)</p>
                    </div>
                </div>
                <div class="sheng3 chu">

                </div>
                <!-- 运动户外 -->
                <div class="sheng1 ppp1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">运动户外</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_2.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_4.png" alt="">
                        <p>剃须刀(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_10.png" alt="">
                        <p>按摩器(21)</p>
                    </div>
                </div>
                <div class="sheng3 yun">

                </div>
                <!-- 摄影 -->
                <div class="sheng1 ppp1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">摄影</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_1.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_3.png" alt="">
                        <p>剃须刀(21)</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_5.png" alt="">
                        <p>按摩器(21)</p>
                    </div>
                </div>
                <div class="sheng3 she">

                </div>
                <!-- 手机 -->
                <div class="sheng1 ppp1">
                    <div class="p-father">
                        <p class="red"></p>
                        <p class="sheng2">手机</p>
                    </div>
                    <div class="img-d">
                        <img src="./img/cat_6.png" alt="">
                        <p>牙刷(21)</p>
                    </div>
                </div>
                <div class="sheng3 shou1">

                </div>
            </div>
        </div>
    </div>
    <div class="btm">
        <!-- 结尾 -->
        <div class="btm-1">
            <img src=".//img/erweima.png" alt="" class="erweima">
            <div class="btm-2">
                <img src=".//img/logoImg.jpg" alt="" width="110px">
                <p class="btm-p">
                    全球酷玩试用导购平台酷·新奇·好玩·品质
                    <br>
                    <br>
                    微信添加&nbsp;"JguoJguo"获取我们的服务
                </p>
            </div>
            <div class="btm-3">
                <dt>
                    免费使用
                    <dl class="dl">
                        <dd>试用流程</dd>
                        <dd>如何提高成功率</dd>
                    </dl>
                </dt>
                <dt>
                    友情链接
                    <dl class="dl">
                        <dd>智东西&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WIBUSI</dd>
                        <dd>搜狐IT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;腾讯科技</dd>
                        <dd>搜狐数码&nbsp;&nbsp;&nbsp;&nbsp;凤凰科技</dd>
                        <dd>凤凰数码&nbsp;&nbsp;&nbsp;&nbsp;PConline</dd>
                        <dd>泡泡网&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3W咖啡</dd>
                        <dd>ZUK社区&nbsp;&nbsp;&nbsp;&nbsp;亿觅emie</dd>
                        <dd>极客公园&nbsp;&nbsp;&nbsp;&nbsp;易迅易启玩</dd>
                        <dd>果库</dd>
                        <dd></dd>
                    </dl>
                </dt>
                <dt>
                    购买攻略
                    <dl class="dl">
                        <dd>美亚海阔教程</dd>
                        <dd>日亚海阔教程</dd>
                        <dd>海阔转运攻略</dd>
                        <dd>kickstarter &nbsp;&nbsp;众筹购买攻略</dd>
                        <dd>indiegogo &nbsp;&nbsp;众筹购买攻略</dd>
                    </dl>
                </dt>
                <dt class="dt1">
                    厂商合作
                    <dl class="dl">
                        <dd>关于极果</dd>
                        <dd>联系我们</dd>
                        <dd>商务合作&nbsp;:&nbsp;BD@jiguo.com</dd>
                        <dd>CEO邮箱&nbsp;:&nbsp;CEO@jiguo.com</dd>
                    </dl>
                </dt>
            </div>
        </div>
        <p class="jiewei"> @ 2016 极果版权所有</p>
    </div>
    <script>
        //点击事件
        $(function () {
            // js加载的时间放在最后 先加载文档 让用户看到
            var titles = $('.title');
            var div1 = $('.new-content')
            var div2 = $('.hot-content')
            var div3 = $('.faxian3')
            $.each(titles, function (index, el) {
                $(el).click(function () {
                    // 点击事件
                    // 先清除所有的active 然后给当前点击的元素添加active
                    $('.title.active').removeClass('active');
                    $(this).addClass('active');
                    var contentName = $(this).attr('content1');;
                    // 上面是切换标题，还需要切换内容，也就是3个大div的显示隐藏
                    // 发请求获取对应的数据--根据点击的标题不同 请求地址也不同
                    if (contentName === 'faxian3') {
                        // 显示品类 并获取品类的数据
                        div1.hide();
                        div2.hide();
                        div3.show();
                        // 调接口 获取数据
                        getData('play/category')
                    } else if (contentName === 'hot-content') {
                        // 显示最热 并获取最热的数据
                        div1.hide();
                        div2.show();
                        div3.hide();
                        getData('play/hot')
                    } else if (contentName === 'new-content') {
                        // 显示最新 并获取最新的数据
                        div1.show();
                        div2.hide();
                        div3.hide();
                        getData('play/new')

                    }
                })
            })
        })
        //品类
        //生活
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    // console.log(data);
                    $.each(data, function (index, item) {
                        console.log(index, item.list[0].productName);
                        // $.each(item.list[0], function (i, text) {
                        // console.log(i, text);
                        str += '<div class="text1">' + item.list[0].productName + '<span>' + '(' + item.list[0].nums + ')' + '</span>' + '</div>'

                        // })
                    })
                    $('.sheng3').append(str)
                }

            })
        })
        //个人护理
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    // console.log(data);
                    $.each(data, function (index, item) {
                        // console.log(index, item.list[1].productName);
                        // $.each(item.list[0], function (i, text) {
                        // console.log(i, text);
                        str += '<div class="text1">' + item.list[1].productName + '<span>' + '(' + item.list[1].nums + ')' + '</span>' + '</div>'

                        // })
                    })
                    $('.hulue').append(str)
                }

            })
        })
        //健康
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    // console.log(data);
                    $.each(data, function (index, item) {
                        // console.log(index, item.list[1].productName);
                        // $.each(item.list[0], function (i, text) {
                        // console.log(i, text);
                        str += '<div class="text1">' + item.list[2].productName + '<span>' + '(' + item.list[2].nums + ')' + '</span>' + '</div>'

                        // })
                    })
                    $('.hulue').append(str)
                }

            })
        })
        //智能穿戴
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    // console.log(data);
                    $.each(data, function (index, item) {
                        // console.log(index, item.list[1].productName);
                        // $.each(item.list[0], function (i, text) {
                        // console.log(i, text);
                        str += '<div class="text1">' + item.list[3].productName + '<span>' + '(' + item.list[3].nums + ')' + '</span>' + '</div>'

                        // })
                    })
                    $('.zhi').append(str)
                }

            })
        })
        //出行
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    // console.log(data);
                    $.each(data, function (index, item) {
                        // console.log(index, item.list[1].productName);
                        // $.each(item.list[0], function (i, text) {
                        // console.log(i, text);
                        str += '<div class="text1">' + item.list[4].productName + '<span>' + '(' + item.list[4].nums + ')' + '</span>' + '</div>'

                        // })
                    })
                    $('.chu').append(str)
                }

            })
        })
        // 运动户外
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    $.each(data, function (index, item) {
                        str += '<div class="text1">' + item.list[5].productName + '<span>' + '(' + item.list[5].nums + ')' + '</span>' + '</div>'
                    })
                    $('.yun').append(str)
                }
            })
        })
        // 摄影
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    $.each(data, function (index, item) {
                        console.log(item.list[6]);
                        str += '<div class="text1">' + item.list[3].productName + '<span>' + '(' + item.list[3].nums + ')' + '</span>' + '</div>'
                    })
                    $('.she').append(str)
                }
            })
        })
        // 手机
        $(function () {
            var str = ''
            $.ajax({
                url: 'http://localhost:3000/play/category',
                type: 'get',
                success: function (data) {
                    $.each(data, function (index, item) {
                        console.log(item);
                        str += '<div class="text1">' + item.list[2].productName + '<span>' + '(' + item.list[2].nums + ')' + '</span>' + '</div>'
                    })
                    $('.shou1').append(str)
                }
            })
        })
        var zui1 = document.querySelector('.zui1')
        var zui2 = document.querySelector('.zui2')
        var zui3 = document.querySelector('.zui3')
        var faxian = document.querySelector('.faxian')
        var faxian2 = document.querySelector('.faxian2')
        var faxian3 = document.querySelector('.faxian3')

        zui1.onclick = function () {
            faxian.style.display = 'block'
            faxian2.style.display = 'none'
            faxian3.style.display = 'none'
            zui1.style.color = 'rgb(254, 104, 49)';
            zui1.style.borderBottom = '2px rgb(254, 104, 49) solid'
            zui2.style.color = 'rgb(152, 152, 152)';
            zui2.style.borderBottom = '0px rgb(254, 104, 49) solid'
            zui3.style.color = 'rgb(152, 152, 152)';
            zui3.style.borderBottom = '0px rgb(254, 104, 49) solid'

        }
        zui2.onclick = function () {
            faxian.style.display = 'none';
            faxian3.style.display = 'none';
            faxian2.style.display = 'block'
            zui2.style.color = 'rgb(254, 104, 49)';
            zui2.style.borderBottom = '2px red solid'
            zui1.style.color = 'rgb(152, 152, 152)';
            zui1.style.borderBottom = '0px rgb(254, 104, 49) solid'
            zui3.style.color = 'rgb(152, 152, 152)';
            zui3.style.borderBottom = '0px rgb(254, 104, 49) solid'

        }
        zui3.onclick = function () {
            faxian3.style.display = 'block'
            faxian.style.display = 'none';
            faxian2.style.display = 'none';
            zui3.style.color = 'rgb(254, 104, 49)';
            zui3.style.borderBottom = '2px red solid'
            zui1.style.color = 'rgb(152, 152, 152)';
            zui1.style.borderBottom = '0px rgb(254, 104, 49) solid'
            zui2.style.color = 'rgb(152, 152, 152)';
            zui2.style.borderBottom = '0px rgb(254, 104, 49) solid'
        }

    </script>
</body>

</html>